


list = ["刘备","关羽","张飞","赵云","马超","黄盖"]
list[0] = "曹操"

list[1] = "周瑜"


index= 2
list[index] = "貂蝉"

print(list)

'''
列表[索引] = 值 修改列表指定成员的值
索引可以是一个具体的数字,也可以是一个变量

'''